{% extends "base.html" %}

{% block title %}{{system.name}} (system){% endblock %}
{% block heading %}{{system.name}} (system){% endblock %}

{% block leftmenu %}
	<a href='/scanning'>Map</a><br/>
	<a href='/scanningcalc'>Calculator</a><br/>
	<a href='/editsystem?id={{system.key.id}}'>Edit system</a><br/>
	<a href='/sigs?id={{system.key.id}}'>Signatures</a><br/>
{% endblock %}

{% block content %}
		<h2>System Details</h2>
		<table>
			<tr class="standard">
				<td>Category:</td>
				<td>
					{{system.systype}}
				</td>
			</tr>
			<tr class="standard">
				<td valign='top'>Notes:</td>
				<td>
					{{system.notes|escape}}
				</td>
			</tr>
		</table>
		<h2>Information Links</h2>
		<ul>
			<li><a href='http://evemaps.dotlan.net/system/{{system.name}}'>EveMaps system info</a></li>
			<li><a href='http://evemaps.dotlan.net/route/{{system.name}}:Jita'>Route to Jita</a></li>
		</ul>
		<h2>Wormhole links</h2>
		<table>
			<tr class="standard">
				<td>In</td>
				<td>
					<a href='/viewsystem?key={{inlink.key}}'>{{inlink.name}}</a>
				</td>
				<td>
					<a href='/closewh?key={{system.key}}'>[Close]</a>
				</td>
			</tr>
			{% for outsys in outlinks %}
				<tr class="standard">
					<td>Out</td>
					<td>
						<a href='/viewsystem?key={{outsys.key}}'>{{outsys.name}}</a>
					</td>
				</tr>
			{% endfor %}
		</table>
		
		<p/>
		
		<table>
			<tr class="standard"><td>
			<form action='/addsyswh' method='post'>
				<input type='hidden' name='key' value='{{system.key}}' />
				<p>
				Add WH out to  <input type='text' name='dest' /><br/>
				<input type='Submit' value="Add" /> 
			</form>
			</td></tr>
		</table>

{% endblock %}
